/**
 * 
 */
package com.freecsim.sas.core.internal;

import java.util.HashMap;
import java.util.Map;

import com.freecsim.sas.core.services.ServiceContext;

/**
 * @author wucj
 *
 */
public class InnerServiceContext implements ServiceContext {
	
	Map<String, Object> attributes = null;
	
	/**
	 * 构造方法
	 */
	public InnerServiceContext(){
		attributes = new HashMap<String, Object>();
	}

	/*
	 * (non-Javadoc)
	 * @see com.freecsim.server.framework.core.services.ServiceContext#getAttribute(java.lang.String)
	 */
	public Object getAttribute(String name) {
		return attributes.get(name);
	}

	/*
	 * (non-Javadoc)
	 * @see com.freecsim.server.framework.core.services.ServiceContext#setAttribute(java.lang.String, java.lang.Object)
	 */
	public void setAttribute(String name, Object object) {
		attributes.put(name, object);
	}
}
